#include<iostream>
using namespace std;


    void swap01(int a, int b)
    {
        int temp = a;
        a =b;
        b = temp;

        cout<<"swap01 a ="<<a<<endl;
        cout<<"swap01 b ="<<b<<endl;
    }

int main()
{
    //指针和函数
    //1，值传递
     int a = 10;
     int b = 20;

    swap01(a,b);


    cout<<"swap01 a ="<<a<<endl;
    cout<<"swap01 b ="<<b<<endl;


    system("pause");
    return 0;

}